package com.cencat.driver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * 司机模块启动类
 * 
 * @author cencat
 * @version 1.0
 * @since 2024-12-19
 */
@SpringBootApplication
@MapperScan("com.cencat.driver.mapper")
@ComponentScan(basePackages = {"com.cencat.driver", "com.cencat.common"})
public class DriverApplication {

    public static void main(String[] args) {
        SpringApplication.run(DriverApplication.class, args);
        System.out.println("");
        System.out.println("   ____                      _     ____       _                 ");
        System.out.println("  / ___|___ _ __   ___ __ _| |_  |  _ \\ _ __(_)_   _____ _ __   ");
        System.out.println(" | |   / _ \\ '_ \\ / __/ _` | __| | | | | '__| \\ \\ / / _ \\ '__|  ");
        System.out.println(" | |__|  __/ | | | (_| (_| | |_  | |_| | |  | |\\ V /  __/ |     ");
        System.out.println("  \\____\\___|_| |_|\\___\\__,_|\\__| |____/|_|  |_| \\_/ \\___|_|     ");
        System.out.println("");
        System.out.println("司机管理服务启动成功！");
        System.out.println("接口文档地址: http://localhost:8081/doc.html");
        System.out.println("");
    }
}